<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>JS循环语句</title>
  </head>
  <body>
    <script>
      // 对象例子
      let person = {
        name: "小红",
        age: 18,
        gender: "woman",
      };
      // for循环
      for (const key in person) {
        console.log(key);
        console.log(person[key]);
      }
    </script>
  </body>
</html>
